/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
 * Description: 封装dl接口函数的适配接口
 * Author: lzd
 * Create: 2020-06-1
 */

#include "hccl_dl.h"
#include "sal.h"
#ifdef __cplusplus
extern "C" {
#endif
int __HcclDlclose(void *handle)
{
    return dlclose(handle);
}

void *__HcclDlsym(void *handle, const char *funcName)
{
    return dlsym(handle, funcName);
}

void *__HcclDlopen(const char *libName, int mode)
{
    return dlopen(libName, mode);
}
weak_alias(__HcclDlopen, HcclDlopen);
weak_alias(__HcclDlclose, HcclDlclose);
weak_alias(__HcclDlsym, HcclDlsym);

#ifdef __cplusplus
}  // extern "C"
#endif
